package com.demo.ping.config;

import com.hazelcast.config.Config;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *  @author Jofo
 */


@Configuration
public class HazelcastConfig {

    /**
     * Configuration for Hazelcast
     */
    @Bean(name = "hazelcastInstanceServer")
    public HazelcastInstance hazelcastInstance() {
        Config config = new Config();
        return Hazelcast.newHazelcastInstance(config);
    }
}